<?php

namespace app\common\validate\product\team;

use think\Validate;

class Business extends Validate
{
    protected $rule = [
        'busid' => 'require',
        'proid' => 'require',
        'teamid' => 'require',
        'addrid' => 'require',
        'total' => 'require|>:0',
    ];


    protected $message = [
        'busid.require' => '用户id必填',
        'proid.require' => '商品id必填',
        'teamid.require' => '拼团id必填',
        'addrid.require' => '收货地址id必填',
        'total.require' => '拼团价格必填',
        'total.>' => '拼团价格必须大于0元',
    ];

    /**
     * 验证场景定义
     * 格式：'场景名称'	=>	['字段1','字段2'...]
     *
     * @var array
     */
    protected $scene = [];
}
